import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/test',
      name: 'test',
      component: () => import('../views/test/HomeView.vue'),
    },
    {
      path: '/study/one',
      name: 'studyone',
      component: () => import('../views/study/OneView.vue'),
    },
    {
      path: '/crud/news',
      name: 'crudnews',
      component: () => import('../views/crud/NewsView.vue'),
    },
    {
      path: '/crud/newstrue',
      name: 'crudnewstrue',
      component: () => import('../views/crud/NewsTrue.vue'),
    },
    {
      path: '/crud/newsdetailtrue',
      name: 'crudnewsdetailtrue',
      component: () => import('../views/crud/NewsDetailTrue.vue'),
    },
    {
      path: '/crud/billboard',
      name: 'crudbillboard',
      component: () => import('../views/crud/WorkBillboard.vue'),
    },
    {
      path: '/crud/footballteam',
      name: 'crudfootballteam',
      component: () => import('../views/crud/WorkFootballteam.vue'),
    },
    {
      path: '/crud/WorkFootballInfo',
      name: 'WorkFootballInfo',
      component: () => import('../views/crud/WorkFootballInfo.vue'),
    },
    {
      path: '/user/Reg',
      name: 'RegView',
      component: () => import('../views/user/RegView.vue'),
    },
    {
      path: '/user/Login',
      name: 'LoginView',
      component: () => import('../views/user/LoginView.vue'),
    },
    {
      path: '/user/Main',
      name: 'MainView',
      component: () => import('../views/user/MainView.vue'),
    },
    {
      path: '/study/TwoView',
      name: 'TwoView',
      component: () => import('../views/study/TwoView.vue'),
    },
    {
      path: '/study/ThreeView',
      name: 'ThreeView',
      component: () => import('../views/study/ThreeView.vue'),
    },
    {
      path: '/news/News',
      name: 'NewsNews',
      component: () => import('../views/news/News.vue'),
    },
    {
      path: '/news/NewsInfo',
      name: 'NewsNewsInfo',
      component: () => import('../views/news/NewsInfo.vue'),
    },
    {
      path: '/news/Legin',
      name: 'NewsLegin',
      component: () => import('../views/news/Legin.vue'),
    },
    {
      path: '/news/UserInfo',
      name: 'NewsUserInfo',
      component: () => import('../views/news/UserInfo.vue'),
    },
    {
      path: '/study/FourView',
      name: 'studyFourView',
      component: () => import('../views/study/FourView.vue'),
    },
    {
      path: '/study/five',
      name: 'studyfiveview',
      component: () => import('../views/study/FiveView.vue'),
    },
  ],
})

export default router
